<?php if (!defined('SHUIPF_VERSION')) exit(); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "/www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="/www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

	<title><if condition=" isset($SEO['title']) && !empty($SEO['title']) ">反馈-{$SEO['title']}</if>
		反馈-{$SEO['site_title']}</title> 

	<Meta name="Keywords" content="{$SEO['keyword']}" />
	<META name="Description" content="{$SEO['description']}" />
	<link href="{$config_siteurl}statics/nhjhouse/css/styles.css" rel="stylesheet" type="text/css" />
	<link href="{$config_siteurl}statics/nhjhouse/css/lightbox.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript" src="{$config_siteurl}statics/nhjhouse/js/jquery.min.js"></script>
	<script type="text/javascript" src="{$config_siteurl}statics/nhjhouse/js/jquery.validate.pack.js"></script>
	<script type="text/javascript" src="{$config_siteurl}statics/nhjhouse/js/jquery.lightbox.js"></script>
	<!--<script type="text/javascript" src="{$config_siteurl}statics/nhjhouse/js/jquery-ecg.js"></script>-->
	<script type="text/javascript">
	 	$(document).ready(function(){
			//输入内容字数限制
			$('#content').bind('focus keyup input paste',function(){
				$maxNum = 110;
				$maxTxt = $(this).attr("value");
				if($maxTxt.length > $maxNum){
					$(this).html($maxTxt.substring(0,$maxNum));
				}else{
					$('#num').text($maxNum - $maxTxt.length);
				}
			});
			$("#formMsg").validate({
				rules:{
					name:{required:true},
					phone:{required:true},
					city:{required:true},
					content:{required:true}
				},
				messages:{
					name:{required:'请输入称呼'},
					phone:{required:'请输入电话'},
					city:{required:'请输入城市'},
					content:{required:'请输入内容'}
				}
				// errorPlacement:function(error,element){
				//     element.next("td").html(error);
				// }
			});
	 	});
		
	</script>
</head>
<body>
<template file="Buy/header.php"/>
<div id="box">

	<div class="mainbox clearfix">
		<div class="maininfo lf">
			<div class="box-top2"></div>
			<div class="sect">
				<div class="askform"> <strong>如果您是商家、网友，想在xx购物或者有什么建议，请填写</strong>
					<form name="formMsg" id="formMsg" method="post" action="{:U('Feedback/Index/addFeedback')}">
						<table class="dataTab" width="100%" style="margin-top:15px;">
							<tbody>
								<tr>
									<td width="120" align="right" valign="top"> <strong><font color="red">*</font>您的称呼</strong>
									</td>
									<td>
										<input class="txt" type="text" value="" name="name" id="name" size="60" />
									</td>
								</tr>
								<tr>
									<td align="right" valign="top">
										<strong><font color="red">*</font>您的电话</strong>
									</td>
									<td>
										<input class="txt" type="text" value="" name="phone" id="phone" size="60" />
									</td>
								</tr>
								<tr>
									<td align="right" valign="top">
										<strong>其他方式</strong>
									</td>
									<td>
										<input class="txt" type="text" value="" name="contact" id="contact" size="60" />
										<span>请留下您的手机、QQ号或邮箱，方便联系</span>
									</td>
								</tr>
								<tr>
									<td align="right" valign="top">
										<strong><font color="red">*</font>城市</strong>
									</td>
									<td>
										<select name="city" id="city_id">
											<option value="">请选择城市</option>
											<option  value="北京">北京</option>
											<option  value="上海">上海</option>
											<option value="平湖">平湖</option>
											<option value="其他">其他城市</option>
										</select>
									</td>
								</tr>
								<tr>
									<td align="right" valign="top">
										<strong><font color="red">*</font>内容</strong>
									</td>
									<td>
										<textarea class="area" rows="3" cols="80" maxlength="110" id="content" name="content"></textarea>
										<p style="color:#666;">
											您最多输入110个汉字，还可以输入 <b><font color="#ff0000" id="num">110</font></b>
											个字
										</p>
									</td>
								</tr>
								<tr>
									<td></td>
									<td>
										<input type="submit" value="好了，提交" class="but" />
									</td>
								</tr>
							</tbody>
						</table>
					</form>
				</div>

			</div>

			<div class="box-bottom2"></div>
		</div>

		<div class="sidebox rf">

			<div class="sideblock">
				<div class="sbox-top"></div>
				<div class="sidemain">
					<strong>您有好产品吗？您在为销售发愁吗？加入我们...</strong>
					<p>
						如果您有好的产品，并且希望通过我们扩大销售，推广产品，请在这里留下您的联系方式和产品简要描述，我们的销售人员会第一时间和您联系！
					</p>
				</div>
				<div class="sbox-bottom"></div>
			</div>

		</div>

	</div>

</div>

<div class="wrap">
	<template file="Buy/footer.php"/>
</div>
</body>
</html>